import request from '/@/utils/request'

export interface GetTransferInput {
  startTime?: string
  endTime?: string
  goodsOrCategory?: string
  transferOrderNo?: string
  transferType?: string
  fromWarehouse?: string
  toWarehouse?: string
  agentName?: string
  makerName?: string
  outStatus?: string
  inStatus?: string
  page?: number
  pageSize?: number
}

export function fetchTransferPage(data: GetTransferInput) {
  return request.post('/api/report/transfer/page', data)
}

export function fetchTransferStats(data: GetTransferInput) {
  return request.post('/api/report/transfer/stats', data)
}
